﻿<%@ Page Language="C#" Inherits="My.Blog.Web.BasePage" AutoEventWireup="false" %>
<%@ Import Namespace="My.Blog" %>

<h1>博客列表</h1>
 
<%
    BlogSystem bs = new BlogSystem();
    List<MyBlog> list = bs.GetBlogs();
    if(0 == list.Count)
    {
%>
    <p>抱歉！没有找到您要找的东西！</p>
<% 
    }

    foreach (MyBlog blog in list)
    {
%>
        <a href="Default.aspx?Module=Blog&Action=Index&Id=<%=blog.Id %>"><%=blog.Name %></a>
<%
    }
%>